package cn.txy.openfeign;

import cn.txy.pojo.domain.LoginVo;
import cn.txy.result.JSONResult;
import org.springframework.cloud.openfeign.FallbackFactory;

public class UaaOpenFeignFallbackFactory implements FallbackFactory<UaaOpenFeign> {
    @Override
    public UaaOpenFeign create(Throwable cause) {
        return new UaaOpenFeign() {
            @Override
            public JSONResult register(LoginVo loginVo) {
                return JSONResult.error("添加失败");
            }
        };
    }
}
